/*!
* parallax.js v1.4.2 (http://pixelcog.github.io/parallax.js/)
* @copyright 2016 PixelCog, Inc.
* @license MIT (https://github.com/pixelcog/parallax.js/blob/master/LICENSE)
*
* Improved by Milingona Team
*/
!function(t,i,e,s){function o(i,e){var a=this;"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this,e)),this.$element=t(i),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var h=(this.position+"").toLowerCase().match(/\S+/g)||[];if(h.length<1&&h.push("center"),1==h.length&&h.push(h[0]),("top"==h[0]||"bottom"==h[0]||"left"==h[1]||"right"==h[1])&&(h=[h[1],h[0]]),this.positionX!=s&&(h[0]=this.positionX.toLowerCase()),this.positionY!=s&&(h[1]=this.positionY.toLowerCase()),a.positionX=h[0],a.positionY=h[1],"left"!=this.positionX&&"right"!=this.positionX&&(isNaN(parseInt(this.positionX))?this.positionX="center":this.positionX=parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(isNaN(parseInt(this.positionY))?this.positionY="center":this.positionY=parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod|iPhone|iPad)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$container=t("
").prependTo(this.$element);var n=this.$element.find(">.vu_parallax-slider"),r=!1;0==n.length?this.$slider=t("
").prependTo(this.$container):(this.$slider=n.prependTo(this.$container),r=!0),this.$container.addClass("vu_parallax-container").css({transform:"translate3d(0px, 0px, 0px)",position:"absolute",top:0,left:0,height:"100%",width:"100%",zIndex:this.zIndex,overflow:"hidden"}),this.$slider.addClass("vu_parallax-slider").one("load",function(){a.naturalHeight&&a.naturalWidth||(a.naturalHeight=this.naturalHeight||this.height||1,a.naturalWidth=this.naturalWidth||this.width||1),a.aspectRatio=a.naturalWidth/a.naturalHeight,o.isSetup||o.setup(),o.sliders.push(a),o.isFresh=!1,o.requestRender()}),r||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||n.length>0)&&this.$slider.trigger("load")}function a(s){return this.each(function(){var a=t(this),h="object"==typeof s&&s;this==i||this==e||a.is("body")?o.configure(h):a.data("px.parallax")?"object"==typeof s&&t.extend(a.data("px.parallax"),h):(h=t.extend({},a.data(),h),a.data("px.parallax",new o(this,h))),"string"==typeof s&&("destroy"==s?o.destroy(this):o[s]())})}!function(){for(var t=0,e=["ms","moz","webkit","o"],s=0;s=this.boxWidth){this.imageWidth=a*this.aspectRatio|0,this.imageHeight=a,this.offsetBaseTop=h;var n=this.imageWidth-this.boxWidth;"left"==this.positionX?this.offsetLeft=0:"right"==this.positionX?this.offsetLeft=-n:isNaN(this.positionX)?this.offsetLeft=-n/2|0:this.offsetLeft=Math.max(this.positionX,-n)}else{this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0;var n=this.imageHeight-a;"top"==this.positionY?this.offsetBaseTop=h:"bottom"==this.positionY?this.offsetBaseTop=h-n:isNaN(this.positionY)?this.offsetBaseTop=h-n/2|0:this.offsetBaseTop=h+Math.max(this.positionY,-n)}},render:function(){var t=o.scrollTop,i=o.scrollLeft,e=(this.overScrollFix?o.overScroll:0,t+o.winHeight);this.boxOffsetBottom>t&&this.boxOffsetTop<=e?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-i,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$slider.css({transform:"translate3d(0px, 0px, 0px)",position:"absolute",top:this.offsetTop,left:this.offsetLeft,height:this.imageHeight,width:this.imageWidth,maxWidth:"none",opacity:1})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){if(!this.isReady){var s=t(e),a=t(i),h=function(){o.winHeight=a.height(),o.winWidth=a.width(),o.docHeight=s.height(),o.docWidth=s.width()},n=function(){var t=a.scrollTop(),i=o.docHeight-o.winHeight,e=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(i,t)),o.scrollLeft=Math.max(0,Math.min(e,a.scrollLeft())),o.overScroll=Math.max(t-i,Math.min(t,0))};a.on("resize.px.parallax load.px.parallax",function(){h(),o.isFresh=!1,o.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){n(),o.requestRender()}),h(),n(),this.isReady=!0}},configure:function(i){"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this.prototype,i))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;this.isBusy||(this.isBusy=!0,i.requestAnimationFrame(function(){t.render(),t.isBusy=!1}))},destroy:function(e){var s,a=t(e).data("px.parallax");for(a.$container.remove(),s=0;s